#include <stdio.h>
#include <unistd.h>

int main(int argc , char * argv[])
{
    pid_t pid = fork();
    if(pid == 0)
    {
        puts("Hi ,I am a child precess");
    }
    else
    {
        printf("child process ID %d \n",pid);
        sleep(30);
    }
    if(pid == 0)
    {
        puts("End child precess\n");
    }
    else
    {
        puts("End parent process\n");
    }
    return 0;
}